package com.resou.reader.commom;

public class Constant {

    //从哪里进入的阅读器？
    public static final int START_FROM_BOOK_DETAIL = 0;//从书籍详情页
    public static final int START_FROM_COLLECTION = 1;//从书架
    public static final int START_FROM_READ_HISTORY = 2;//从观看历史
    public static final int START_FROM_CATALOGE = 3;//从目录启动

    //Extra params
    public static final String EXTRA_BOOK_ID = "book_id";
    public static final String EXTRA_BOOK_READ_TYPE = "type";
    public static final String EXTRA_BOOK_NAME = "book_name";
    public static final String EXTRA_CHAPTER_ID = "chapter_id";
    public static final String EXTRA_CHAPTER_NAME = "chapter_name";
    public static final String EXTRA_CHAPTER_LIST = "chapter_list";
    public static final String EXTRA_CHAPTER_CONTENT = "chapter_content";
    public static final String EXTRA_READ_CHAR_INDEX = "read_char_index";
    public static final String EXTRA_SHARE_URL = "book_share_url";
    public static final String EXTRA_DESCRIPTION = "book_description";
    public static final String EXTRA_CHAPTER_INDEX = "book_chapter_index";
    public static final String EXTRA_TO_READER_FROM = "to_reader_from_where";//记录从哪里进入的阅读器
    public static final String EXTRA_TO_ISJPUSH = "isJpush";//是否从推送进来
    public static final String EXTRA_BOOK_DETAIL_BEAN = "book_detail_bean";//从详情页启动
    public static final String EXTRA_COLLECTION_BEAN = "collection_bean";//从收藏启动
    public static final String EXTRA_READ_HISTORY_BEAN = "read_history_bean";//从阅读历史启动
    public static final String EXTRA_CHAPTER_ITEM_BEAN = "chapter_item_bean";//从目录启动
    public static final String EXTRA_CATALOGUE_LAST_CHAPTER = "chapter_last_name";//从目录启动
    public static final String EXTRA_TO_NEW_CHAPTER = "read_new_chapter";//阅读最新？
    public static final String EXTRA_CHAPTER_SUM = "chapter_sum";//章节总数
    public static final String EXTRA_CATALOGUE_BOOK_DETAIL_BEAN = "book_detail_bean";//章节总数
    public static final String EXTRA_ADDED_ON_BOOKSHELF = "added_to_book_shelf";//标识是否已经加入了书架
    public static final String EXTRA_PAY_TYPE = "pay_type";//多章节付费类型

    //Category Extra params
    public static final String EXTRA_SUB_CATEGROY = "sub_category";

    public static final int START_MULTI_PAY_REQUEST_CODE = 0x01;
    public static final int PAY_REQUEST_CODE = 0x02;
    public static final int READ_SET_REQUEST_CODE = 0x03;


    //login params
    public static final String SMS_SEND_TYPE_LOGIN = "login";//
    public static final String SMS_SEND_TYPE_REGIST = "regist";//
    public static final String SMS_SEND_TYPE_FWPASSWORD = "fwpassword";//
    public static final String SMS_SEND_TYPE_BINDMOBILE = "bindmobile";//

    // sms params
    public static final String LOGIN_TYPE_PASSWORD = "0";//用户名密码登录
    public static final String LOGIN_TYPE_CODE = "1";//短信验证码登录
    public static final String LOGIN_TYPE_WECHART = "2";//微信登录
    public static final String LOGIN_TYPE_QQ = "3";//QQ登录

    //第三方
    public static final String APP_ID_QQ = "101494335";
    public static final String APP_ID_WE_CHAT = "wx0e7e17a030a61e08";

    //友盟
    public static final String UM_APPKEY = "5b0f5e128f4a9d659b0000ab";
    public static final String UMENG_CHANNEL = "resou";
    public static final String UM_MESSAGE_SECRET = "5b35ec4ccd8f318e97bf817d4cba6828";
    public static final String UM_MASTER_SECRET = "dcckcw3qmy64lbdjyyetgjxxcsgybzje";

    // request code
    public static final int REQUEST_HEAD = 0;//头像
    public static final int REQUEST_NICKNAME = 1;//昵称
    public static final int REQUEST_BIRTHDAY = 2;//生日
    public static final int REQUEST_SIGN = 3;//个签

    public static final String APP = "app";

    //微信支付成功的广播
    public static final String WX_PAY_SUCCESS = "com.resou.reader.wxapi.success";

    public static final String BC_BATCH_PAY = "com.resou.reader.paycenter.p.batchpaypresenter";

    public static final String BC_READER = "com.resou.reader.reader.p.readerpresenter";


}
